libname = 'EventSystem';

IncludePath = ['./']
LibsPath = []   
Libs = ['SDL']

CommonFlags = ' -Wall -pedantic'

debug  = ARGUMENTS.get('debug', 1)
shared = ARGUMENTS.get('shared', 0)
libenv = Environment(CPPFLAGS = CommonFlags)
libenv.Append(CPPDEFINES = ['TRACES','DEBUG'])

if int(debug):
	libenv.Append(CPPFLAGS = ' -g -ggdb ')

files = Split("""
main.cpp
DisplayObject.cpp
InteractiveObject.cpp
EventDispatcher.cpp
KeyboardEvent.cpp
Application.cpp
""");

libenv.Program(target = 'test', source = files, CPPPATH = IncludePath, LIBS = Libs, LIBPATH = LibsPath)


